package com.ruoyi.project.system.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.ArrayList;
import java.util.List;

/**
 * 证书类型对象 sys_credentials_type
 * 
 * @author ruoyi
 * @date 2020-04-26
 */
public class SysCredentialsType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 证书类型id */
    private Long credentialsTypeId;

    /** 证书类型父id */
    @Excel(name = "证书类型父id")
    private Long parentId;

    /** 祖级列表 */
    @Excel(name = "祖级列表")
    private String ancestors;

    /** 证书类型名称 */
    @Excel(name = "证书类型名称")
    private String credentialsType;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Integer orderNum;

    /** 证书状态 （0正常 1停用） */
    @Excel(name = "证书状态 ", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标识（0代表存在 2代表删除） */
    private String delFlag;

    public List<SysCredentialsType> getChildren() {
        return children;
    }

    public void setChildren(List<SysCredentialsType> children) {
        this.children = children;
    }

    /** 子类型*/

    private List<SysCredentialsType> children = new ArrayList<SysCredentialsType>();

    public void setCredentialsTypeId(Long credentialsTypeId) 
    {
        this.credentialsTypeId = credentialsTypeId;
    }

    public Long getCredentialsTypeId() 
    {
        return credentialsTypeId;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setAncestors(String ancestors) 
    {
        this.ancestors = ancestors;
    }

    public String getAncestors() 
    {
        return ancestors;
    }
    public void setCredentialsType(String credentialsType) 
    {
        this.credentialsType = credentialsType;
    }

    public String getCredentialsType() 
    {
        return credentialsType;
    }
    public void setOrderNum(Integer orderNum) 
    {
        this.orderNum = orderNum;
    }

    public Integer getOrderNum() 
    {
        return orderNum;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("credentialsTypeId", getCredentialsTypeId())
            .append("parentId", getParentId())
            .append("ancestors", getAncestors())
            .append("credentialsType", getCredentialsType())
            .append("orderNum", getOrderNum())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
